/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package general;

/**
 * Define um objeto que representa uma requisição
 * @author foliveira
 */
public class Request {
    
  private String agent;                
  private String agentName;
  private String command;               
  private String data;                  
  private String user;                  
  private String passwd;                
  private String messageReturn;         
  
  
  public Request() { 
  }
  
  public String getAgent() {
    return agent;
  }

  public void setAgent(String agent) {
    this.agent = agent;
  }

  public String getCommand() {
    return command;
  }

  public void setCommand(String command) {
    this.command = command;
  }

  public String getData() {
    return data;
  }

  public void setData(String data) {
    this.data = data;
  }

  public String getUser() {
    return user;
  }

  public void setUser(String user) {
    this.user = user;
  }

  public String getPasswd() {
    return passwd;
  }

  public void setPasswd(String passwd) {
    this.passwd = passwd;
  }

  public String getMessageReturn() {
    return messageReturn;
  }

  public void setMessageReturn(String messageReturn) {
    this.messageReturn = messageReturn;
  }

  @Override
  public String toString() {
    return String.format("%s:%s:%s:%s:%s:%s",agent,command, data,user,passwd,messageReturn);
  }

    public String getAgentName() {
        return agentName;
    }

    public void setAgentName(String agentName) {
        this.agentName = agentName;
    }
 
  
}
